package com.jiyinit.web.core.activiti.service;

import com.jiyinit.core.framework.base.paging.PagingResult;
import com.jiyinit.web.core.activiti.dao.TabUserMemershipDao;
import com.jiyinit.web.core.activiti.dto.TabUserMemershipRequest;
import com.jiyinit.web.core.activiti.entity.TabUserMemershipEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * <p></p>
 * <p>
 * <PRE>
 * <BR>	修改记录
 * <BR>-----------------------------------------------
 * <BR>	修改日期			修改人			修改内容
 * </PRE>
 *
 * @author jack zh
 * @version 1.0
 * @date 2018/7/17
 * @since 1.0
 */

@Service("userMemershipServiceImpl")
public class UserMemershipServiceImpl {

    /**
     * 日志对象
     */
    private static Logger logger = LoggerFactory.getLogger(UserMemershipServiceImpl.class);

    @Resource(name = "core.tabUserMemershipDao")
    private TabUserMemershipDao tabUserMemershipDao;
    public int deleteByPrimaryKey(Integer id)
    {
        return tabUserMemershipDao.deleteByPrimaryKey(id);
    }


    public int insert(TabUserMemershipEntity record)
    {
        return tabUserMemershipDao.insert(record);
    }


    public int insertSelective(TabUserMemershipEntity record)
    {
        return tabUserMemershipDao.insertSelective(record);
    }

    public TabUserMemershipEntity selectByPrimaryKey(Integer id)
    {
        return tabUserMemershipDao.selectByPrimaryKey(id);
    }

    public List<TabUserMemershipEntity> findBySelective(TabUserMemershipEntity record)
    {
        return tabUserMemershipDao.findBySelective(record);
    }

    public int updateByPrimaryKeySelective(TabUserMemershipEntity record)
    {
        return tabUserMemershipDao.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TabUserMemershipEntity record)
    {
        return tabUserMemershipDao.updateByPrimaryKey(record);
    }

    public PagingResult<TabUserMemershipRequest> getListForPage(TabUserMemershipRequest request){
        return tabUserMemershipDao.getListForPage(request);
    }

    public int deleteByIds(Integer[] ids){
        return tabUserMemershipDao.deleteByIds(ids);
    }
}




